package net.ufrog.common.redis.beans;

import net.ufrog.common.utils.Codecs;

import java.io.Serializable;

/**
 * @author ultrafrog, ufrog.net@gmail.com
 * @version 0.1, 2016-09-26
 * @since 0.1
 */
public class User implements Serializable {

    private static final long serialVersionUID = -3693776527276390166L;

    private String id;

    private String name;

    private String gender;

    private Integer age;

    private String account;

    private String address;

    public User() {
        id = Codecs.uuid();
    }

    public User(String name, String gender, Integer age, String account, String address) {
        this();
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.account = account;
        this.address = address;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
